package com.car.main;

import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import com.bbs.crawl.BBSCrawlOfPCAuto;
import com.bbs.dao.BBSDaoOfPCAuto;

public class BBSMainOfPCAuto {
	public static void main(String[] args) {
		BBSDaoOfPCAuto bbsdao = new BBSDaoOfPCAuto();
		List<Integer> bbsids = bbsdao.getBBSID();
		ExecutorService fixedThreadPool = Executors.newFixedThreadPool(10);
		for (Integer bbsid : bbsids) {
			//fixedThreadPool.execute(new BBSCrawlOfPCAuto(bbsdao, bbsid));
		}
		fixedThreadPool.shutdown(); 
	}
}
